<template>
  <div class="container">
    <div class="carouselWrapper">
      <el-carousel>
        <el-carousel-item v-for="item in Imgarr" :key="item.path">
          <img class="carouselImage" :src="item.path" alt="" />
        </el-carousel-item>
      </el-carousel>
    </div>
    <div class="textWrapper">
      机械云
      <div class="title">全新版本机械行业服务云发布上线</div>
      <div class="content">
        全新版本行业服务云现已正式上线，带来更智能、高效的服务体验。此什级不仅引入了先进的智能数据分析、个性化服务定制等功能，还确保与现有系统的无缝集成和数据安全。简洁直观的用户界面让操作更加流畅，助力您的业务发展和客户服务体验全面提升。立即体验，让我们共同开启业务增长的新篇章
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import banner1 from '@/assets/banner1.png'
import banner2 from '@/assets/banner2.png'
import banner3 from '@/assets/banner3.png'
import { reactive } from 'vue'

const Imgarr = reactive([{ path: banner1 }, { path: banner2 }, { path: banner3 }])
</script>
<style lang="less" scoped>
::v-deep .el-carousel__button {
  background-color: #1580ff !important;
}
::v-deep .el-carousel__indicators--horizontal {
  position: fixed;
  top: 70%;
  margin: 0 auto;
}
.container {
  width: 80%;
  height: 100%;
  display: flex;
  margin: 0 auto;
  padding-top: 100px;
  .carouselWrapper {
    width: 100%;
    height: 300px;
    background-color: blanchedalmond;
    .carouselImage {
      width: 100%;
      height: 100%;
    }
  }
  .textWrapper {
    width: 100%;
    height: 300px;
    font-size: 20px;
    background-color: #fafafa;
    color: #99a9bf;
    padding: 26px 30px;
    .title {
      font-size: 24px;
      color: #000;
      margin-top: 10px;
    }
    .content {
      font-size: 16px;
      margin-top: 30px;
      word-spacing: 5px;
    }
  }
}
.demonstration {
  color: var(--el-text-color-secondary);
}

.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>